let cloud = wx.cloud
App({
    checkMsg(e){
        console.log(e)
        wx.showLoading({
          title: '请稍等...',
        })
        return new Promise((resolve,reject)=>{
            resolve({result:{errCode:0}})
            wx.hideLoading()
        })
    },
    checkImg(e){
        console.log(e)
        let that = this
        wx.showLoading({
          title: '请稍等...',
        })
        return new Promise((resolve,reject)=>{
            resolve({result:{errCode:0}})
            wx.hideLoading()
        })
    },
    onLaunch: function() {
        var t = this;
        var e = wx.getStorageSync("logs") || [];
        e.unshift(Date.now()), wx.setStorageSync("logs", e);
        var s = this;
        this.globalData.myDevice = wx.getSystemInfoSync();
        for (var a = 0; a < 156; a++) this.globalData.imgUrl[a] = "https://ishare20.net/emotion/" + (a + 1) + ".png";
        wx.login({
            success: function(t) {}
        }), wx.getSetting({
            success: function(e) {
                e.authSetting["scope.userInfo"] && wx.getUserInfo({
                    success: function(e) {
                        t.globalData.userInfo = e.userInfo, t.userInfoReadyCallback && t.userInfoReadyCallback(e);
                    }
                });
            }
        }), wx.request({
            url: "https://ishare20.net/gifmaker/appset.json",
            headers: {
                "Content-Type": "application/json"
            },
            success: function(t) {
                s.globalData.appset = t.data;
            }
        }), wx.request({
            url: "https://ishare20.net/gifmaker/wxminiset.json",
            headers: {
                "Content-Type": "application/json"
            },
            success: function(t) {
                s.globalData.wxminiset = t.data;
            }
        });
    },
    globalData: {
        userInfo: null,
        myDevice: null,
        imgUrl: [],
        ad: {},
        apiUrl: "https://ishare20.net/textToPic",
        appset: {},
        appid: "wxb8dcb03dab37e2f8",
        wxminiset: [],
        selfAd:[1],
        adTest:[1],
        test:0
    }
});